package studio.raptor.ddal.dashboard.log.common;


/**
 * 类名称 LogServerConstant
 * 日志服务常用固定变量
 */
public class LogServerConstant {

	public static final String DATABASETYPE=CommonMethodUtil.getValueByProCode("databaseType");

	public static final String[] DATABASETYPES = LogServerConstant.DATABASETYPE.split(",");

	public static final String DATABASE_ORACLE="ORACLE";

	public static final String DATABASE_MYSQL="MYSQL";

	//队列名
	//前端接收数据队列
	public static final String LOG_SERVER_FRONT_DATA_QUEUE_NAME="FRONTSTORAGEQUEUE";

	//线程数
	public static final int LOG_SERVER_FRONTQUEUETHREAD_NUMBER
			=Integer.valueOf(CommonMethodUtil.getValueByProCode("frontQueueThread.number","1")).intValue();

	//javaQueue内存队列深度控制
	public static final String LOG_SERVER_JAVAQUEUE_LENGTH_CONTROL
			=CommonMethodUtil.getValueByProCode("javaQueue.length.control");
	//javaQueue内存队列 允许最大深度
	public static final int LOG_SERVER_JAVAQUEUE_LENGTH
			=Integer.valueOf(CommonMethodUtil.getValueByProCode("javaQueue.length","10000")).intValue();

	public static final Long LOG_SERVER_FRONTQUEUETHREAD_SLEEP_TIME
			=Long.valueOf(CommonMethodUtil.getValueByProCode("frontQueueThread.sleeptime","10000")).longValue();


}
